<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{=T.accepted_language or 'en'}}">
  <head>
    <title>豆瓣点名册</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />     
    {{response.files.append(URL(request.application,'static','base.css'))}}
    {{response.files.append(URL(request.application,'static','custom.css'))}}
    {{include 'web2py_ajax.html'}}
<script type="text/javascript">
/* this adds sfhover class to menu li items to make IE6 work */
jQuery(document).ready(function(){
    jQuery('li.web2py-menu-expand').hover(
        function () {
            jQuery(this).addClass('sfhover');
        },
        function () {
            jQuery(this).removeClass('sfhover');
        }
    );
});
</script> 
  </head>
  <body>
    <div class="wrapper">
      <table class="layout">
        <tr>
          <td colspan="3"  class="header">
            <h1>
              {{=A('点名册', _href=URL(request.application,'default','index'))}}
            </h1>            
          </td>
        </tr>
        <tr>
          <td colspan="3" class="statusbar">
            {{='/'.join(['',request.application,request.controller,request.function]+request.args)}}
        {{ if 'auth' in globals():}}
        [ {{if not auth.user:}}
        <a href="{{=URL(r=request,c='default',f='user/login')}}">{{=T('login')}}</a> |
        <a href="{{=URL(r=request,c='default',f='user/register')}}">{{=T('register')}}</a> |
        <a href="{{=URL(r=request,c='default',f='user/request_reset_password')}}">{{=T('lost password')}}</a>
        {{else:}}
        {{=auth.user.first_name}} |
        <a href="{{=URL(r=request,c='default',f='user/logout')}}">{{=T('logout')}}</a> |
        <a href="{{=URL(r=request,c='default',f='user/change_password')}}">{{=T('change password')}}</a> |
        <a href="{{=URL(r=request,c='default',f='user/profile')}}">{{=T('edit profile')}}</a>
        {{pass}} ]
        {{pass}}
          </td>
        </tr>
        <tr>
          <td class="width10em column1">
            {{if response.menu:}}
            <h2>{{=T('Main Menu')}}</h2>
            {{=MENU(response.menu)}}
            {{pass}}
            {{if response.menu_edit:}}
            <h2>{{=T('Edit This App')}}</h2>
            {{=MENU(response.menu_edit)}}
            {{pass}}
            <br />
          </td>
          <td class="expandable column2">
            <div class="flash">{{=response.flash or ''}}</div>
            {{include}}
          </td>
          <!--
               <td class="width10em column3">
                 <h2>Right Column</h2>
               </td>
          //-->
        </tr>
        <tr>
          <td colspan="10" class="footer">
            <p>
            {{=T('A work from')}} <a href="mailto:linuxcity.jn@gmail.com">Maverick</a>
			</p>
			<p>
            {{=T('Copyright')}} &copy; 2010
            {{=T('Powered by')}} <a href="http://www.web2py.com">web2py</a>
            </p>
          </td>
        </tr>
      </table>
    </div>
    <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16635591-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16635591-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
  </body>
</html>
